﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using ScrumFactory.Composition.ViewModel;
using ScrumFactory.Services;
using ScrumFactory.Composition;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Json;

namespace ScrumFactory.GooglePlugin.ViewModel {

    [Export(typeof(IPluginCommand))]
    public class GoogleScheduleMettingsCommand : IPluginCommand {

        private IDialogService dialogs;
        private IBackgroundExecutor executor;
        private IAuthorizationService authorizator;
        private IEventAggregator aggregator;

        [ImportingConstructor]
        public GoogleScheduleMettingsCommand(
            [Import] IDialogService dialogs,
            [Import] IBackgroundExecutor executor,
            [Import] IEventAggregator aggregator,
            [Import] IAuthorizationService authorizator) {
            
            this.dialogs = dialogs;
            this.executor = executor;
            this.authorizator = authorizator;
            this.aggregator = aggregator;

            OnClickCommand = new DelegateCommand<object>(AddMettingsToGoogle);
        }

        public int DisplayOrder {
            get {
                return 100;
            }
        }

        public System.Windows.Input.ICommand OnClickCommand {
            get;
            set;
        }

        public string MenuItemHeader {
            get {
                return Properties.Resources.Schedule_mettings;
            }
        }

        public string MenuItemIconUrl {
            get {
                return "pack://application:,,,/ScrumFactory.GooglePlugin;component/Images/gtask_add.png";
            }
        }

        public bool IsCheckeable {
            get {
                return false;
            }
        }

        public bool IsChecked {
            get {
                return false;
            }
            set { }
        }

        public string ContainerViewModelClassName {
            get {
                return "ScrumFactory.Backlog.ViewModel.IterationPlanningViewModel";
            }
        }
        
        private void AddMettingsToGoogle(dynamic o) {
            
        }


    }
}
